import 'package:flutter/material.dart';
import 'package:sharing/resources/dimens.dart';
import 'package:sharing/resources/colors.dart';
class LoginOrRegisterHeader extends StatelessWidget {
  final String text;
  LoginOrRegisterHeader({this.text}):assert(text!=null);
  @override
  Widget build(BuildContext context) {
    return new Container(
      margin: const EdgeInsets.only(
        top: 24,
        left: 16,
      ),
      alignment: Alignment.topLeft,
      padding: const EdgeInsets.only(left: 24.0),
      child: Text(
        text,  // 说明文字
        style: TextStyle(
          fontSize: Dimensions.fontSp24,
          color: AppColor.primary,
          fontWeight: FontWeight.bold,
        ),
      ),
    );
  }
}
